package com.supermarket.manage.common.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author hsw
 * @Date 16:54 2018/7/26
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {ListValidator.class}
)
public @interface ListIsNotBlank {

    boolean required() default true;

    String message() default "列表不能为空";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};


}